import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

const routes = [
    {
        path: '/',
        name: 'home',
        component: () => import('./components/home.vue')
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('./components/submit/login.vue')
    },
    {
        path: '/register',
        name: 'register',
        component: () => import('./components/submit/register.vue')
    },
    {
        path: '/remenber',
        name: 'remenber',
        component: () => import('./components/submit/remenber.vue')
    },
    {
        path: '/open',
        name: 'open',
        component: () => import('./components/open.vue')
    }
];

export default new Router({
    routes,
    scrollBehavior(to, from, savedPosition){
        return {x: 0, y: 0}
    }
})